package com.aspose.cells;

public class VbaModule {
   String a;
   int b;
   String c;
   String d;
   int e;
   int f;
   int g = 255;
   int h;
   boolean i;
   boolean j;
   byte[] k;
   String l;
   zbuw m;
   static String n = "0{00020819-0000-0000-C000-000000000046}";
   VbaProject o;

   VbaModule(VbaProject vbaProject) {
      this.o = vbaProject;
      this.m = new zbuw();
   }

   VbaModule(VbaProject vbaProject, int type, String name) {
      this.o = vbaProject;
      this.m = new zbuw();
      this.a = name;
      this.h = type;
      this.c = name;
      this.l = zbuy.a(this);
   }

   public String getName() {
      return this.a;
   }

   public void setName(String value) {
      Workbook var2 = this.o.n;
      if (com.aspose.cells.b.a.zv.b(this.a, var2.getWorksheets().h())) {
         var2.getWorksheets().e = value;
      } else {
         Worksheet var3 = var2.getWorksheets().getSheetByCodeName(this.a);
         var3.k = value;
      }

      this.a = value;
      this.c = value;
   }

   public int getType() {
      return this.h;
   }

   public String getCodes() throws Exception {
      if (this.l != null) {
         return this.l;
      } else {
         com.aspose.cells.b.a.d.zm var1 = zbuy.a(new com.aspose.cells.b.a.d.zh(this.k), this.e);
         var1.a(0L, 0);
         com.aspose.cells.b.a.d.zn var2 = new com.aspose.cells.b.a.d.zn(var1, this.o.b);
         this.l = var2.e();
         this.k = null;
         this.e = 0;
         return this.l;
      }
   }

   public void setCodes(String value) {
      this.l = value;
      this.k = null;
      this.e = 0;
      this.l = zbuy.a(this);
   }

   void a(VbaModule var1) {
      if (var1 != null) {
         this.e = var1.e;
         this.f = var1.f;
         this.g = var1.g;
         this.h = var1.h;
         this.i = var1.i;
         this.j = var1.j;
         this.k = var1.k;
         this.l = var1.l;
         if (var1.m != null) {
            this.m = new zbuw();
            this.m.a(var1.m);
         }

      }
   }
}
